function checkPwd() {
    var pwd = document.getElementsByName("password");
    if (pwd.length < 6) {
            document.getElementById("pwdError").innerHTML = "密码长度不小于6"
    }

}